<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\common\model;

/**
 * 模型
 */
class UserLevel extends ModelBase
{

    public function getImageAttr(){
        if($this->cover_id){
            return get_picture_url($this->cover_id,false);
        }else{
            return '';
        }

    }

    public function getShareListAttr(){
        return json_decode($this->share_json,true);
    }

    public function getTeamListAttr(){
        return json_decode($this->team_json,true);
    }
}
